package com.sky.mapper;

import com.sky.entity.Setmeal;
import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    /**
     * 根据id进行套餐计数
     * @param ids
     * @return
     */
    Integer countByIds(List<Long> ids);


    /**
     * 批量插入 setmealDishes
     * @param setmealDishes
     */
    void insertBatch(List<SetmealDish> setmealDishes);

    List<SetmealDish> selectBySetmealId(Long id);

    void deleteBySetmealId(Long setmealId);



}
